package com.cj.po;

import java.util.Date;

/**
 * DClass类对应数据库表d_Dormclean
 */
public class Dormclean {
    /**
     * 主键id
     */
    private int g_id;

    // 宿舍编号
    private int d_id;

    //宿舍楼
    private String d_dormbuilding;

    // 打分
    private String d_grade;

    //创建时间
    private Date create_time;

    //更新时间
    private Date update_time;



    public Dormclean() {
    }



    public int getG_id() {
        return g_id;
    }

    public void setG_id(int g_id) {
        this.g_id = g_id;
    }

    public int getD_id() {
        return d_id;
    }

    public void setD_id(int d_id) {
        this.d_id = d_id;
    }

    public String getD_dormbuilding() {
        return d_dormbuilding;
    }

    public void setD_dormbuilding(String d_dormbuilding) {
        this.d_dormbuilding = d_dormbuilding;
    }

    public String getD_grade() {
        return d_grade;
    }

    public void setD_grade(String d_grade) {
        this.d_grade = d_grade;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    @Override
    public String toString() {
        return "DClass{" +
                "g_id=" + g_id +
                ", d_id=" + d_id +
                ", d_dormbuilding='" + d_dormbuilding + '\'' +
                ", d_grade='" + d_grade + '\'' +
                ",create_time='"+create_time+'\''+
                ",update_time ='"+update_time+'\''+
                '}';
    }


    public Dormclean(int g_id, int d_id, String d_dormbuilding, String d_grade , Date create_time, Date update_time) {
        this.g_id = g_id;
        this.d_id = d_id;
        this.d_dormbuilding = d_dormbuilding;
        this.d_grade = d_grade;
//        this.create_time = create_time;
////        this.update_time = update_time;
        this.update_time = new Date();
        this.create_time = new Date();
    }
}
